Towards a Minimal Set of Operations for Nested Relations
نویسنده
چکیده
Since the first publications on non-first-normal-form relations in the late 70's and early 80's, a variety of formalizations of the data structure of and operations for nested relations have been devised. The data structure itself is defined almost identical in the several approaches, only some subtle difi'erences concerning special cases can be observed. For instance, both the VER50 relations [AB84J and the PNF relations of [RKS85J do not allow relations without an "atomic key", i.e. the set of attributes forming a key must not contain relation-valued attributes, which, however, is allowed in [5584/86J. However, concerning operations for nested relations, a much broader scale of languages was proposed. Formal operations were defined in algebra, calculus and SQL style. In this position paper we want to compare several proposals of algebras for nested relations. We distinguish between "minimal" extensions of the fiat algebra (as for example the ones given by [FT83] or [RKS85J)-i.e. those that try to get along with the "Nest" and "Unnest" operations-, and the "maximal" extensions that supply nested operations (e.g. [AB84, 5S84/86]). Others have investigated equivalences between algebras and calculi for nested relations, e.g. [RK585J, van Gucht, Abiteboul and Beeri (the latter ones see this workshop). This issue is related to the problem of identifying a minimal subset of algebraic operators that give the full expressive power of a certain calculus. (The problem of the powerset operation is treated e.g. by Beeri). In the sequel we concentrate on a specific topic: a minimal subset of the algebra from [5584/86] can be shown to consist of the usual selection, union and un nest operation plus extended projection. In particular, nest, difference and Cartesian product (and thus join) can be expressed in terms of the other operations. This exciting result can be derived by utilizing the concept of "dynamic con6tants" as introduced in [5S84/86]. Therefore, we argue in favor of maximally extended algebras as opposed to the 'minimal' extensions. Problems with empty subrelations and corresponding null values (c!. [Sch086]) are responsible for the fact, that the maximally extended algebra operations can not be expressed by unnesting, applying fiat algebra operations and finally nesting back. Rather, a nested algebra must be defined on its own [AB84, 5S84/86J to achieve the desired expressive power. This is the reason why others have restricted the scope of considered relations to certain normal forms (e.g. PNF) or changed the definitions of basic algebra operations to refiect these normal forms. With the maximally extended algebras we do not need such restrictions. The algebra defined in [5584/86] allows application of relational expressions at any place in an algebra operation, where attributes occur that are relation-valued, i.e. subrelations. As an example consider a nested relation representing departments and employees Dept(dno, dname, ... , mgrno, Emp(eno, ename, .. . ».
منابع مشابه
Relationlog: A Typed Extension to Datalog with Sets and Tuples (Extended Abstract)
This paper presents a novel logic programming based language for nested relational and complex value models called Relationlog. It stands in the same relationship to the nested relational and complex value models as Datalog stands to the relational model. The main novelty of the language is the introduction of powerful mechanisms, namely, partial and complete set terms, for representing and man...
متن کاملQuerying XML Data by the Nested Relational Sequence Database System
In this concise paper, we present the Nested Relational Sequence Model (NRSM), which is an extension of the Nested Relational Data Model in order to handle XML data. We also introduce a set of algebraic operations pertaining to the Nested Relational Sequence Model, which is an extension of the Nested Relational Data Model in order to handle XML data, to manipulate XML documents via NRS relation...
متن کاملFuzzy number-valued fuzzy relation
It is well known fact that binary relations are generalized mathematical functions. Contrary to functions from domain to range, binary relations may assign to each element of domain two or more elements of range. Some basic operations on functions such as the inverse and composition are applicable to binary relations as well. Depending on the domain or range or both are fuzzy value fuzzy set, i...
متن کاملRelationlog: a Typed Extension to Datalog with Sets and Tuples
This paper presents a novel logic programming based language for nested relational and complex value models called Relationlog. It stands in the same relationship to the nested relational and complex value models as Datalog stands to the relational model. The main novelty of the language is the introduction of powerful mechanisms, namely, partial and complete set terms, for representing and man...
متن کاملProperties of fuzzy relations and aggregation process in decision making
In this contribution connections between input fuzzy relations R1, . . . ,Rn on a set X and the output fuzzy relationRF = F(R1, . . . ,Rn) are studied. F is a function of the form F : [0, 1]n → [0, 1] and RF is called an aggregated fuzzyrelation. In the literature the problem of preservation, by a function F, diverse types of properties of fuzzy relationsR1, . . . ,Rn is examined. Here, it is c...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012